import request from '@/utils/request'

// 查询去哪模块列表
export function listGomodule(query) {
  return request({
    url: '/play/gomodule/list',
    method: 'get',
    params: query
  })
}

// 查询去哪模块详细
export function getGomodule(id) {
  return request({
    url: '/play/gomodule/' + id,
    method: 'get'
  })
}

// 新增去哪模块
export function addGomodule(data) {
  return request({
    url: '/play/gomodule',
    method: 'post',
    data: data
  })
}

// 修改去哪模块
export function updateGomodule(data) {
  return request({
    url: '/play/gomodule',
    method: 'put',
    data: data
  })
}

// 删除去哪模块
export function delGomodule(id) {
  return request({
    url: '/play/gomodule/' + id,
    method: 'delete'
  })
}
